
//
//  PicUIscorllView.m
//  Home
//
//  Created by dllo on 16/5/10.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "PicUIscorllView.h"

@implementation PicUIscorllView


- (void)addpictures:(NSArray<UIView *> *)pictures{
    
    
    // 根据图片的数量设置contentSize.
    self.contentSize = CGSizeMake(CGRectGetWidth(self.bounds) ,CGRectGetHeight(self.bounds) * pictures.count);
    
    //添加图片
    for (int i = 0; i < pictures.count; i++) {
        
        [self addSubview:pictures[i]];
        
             
    }


}


@end
